<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .nav{
            background: pink;
        }
        .nav a{
            text-decoration: none;
            color: #fff;
            display:inline-block;
            width: 100px;
            height: 50px;
            text-align: center;
            line-height: 50px;
            font-size: 18px;
        }
        .nav a:hover{
           background-color:deeppink;
        }
    </style>
</head>
<body>
    <div class="nav">
        <a href="#">首页</a>
        <a href="#">资讯</a>
        <a href="#">测评</a>
        <a href="#">商城</a>
    </div>
</body>
</html>